const express = require('express')
const router = express.Router()

// 导入处理函数
const userHandler = require('../router_handler/userRouter_handler')


// 导入验证规则
const { reg_login_schema } = require('../schema/index')

//导入使用验证规则的中间件
const expressJoi = require('@escook/express-joi')

// 配置登录和注册的路由
router.post('/reguser', expressJoi(reg_login_schema), userHandler.reguser)

router.post('/login', userHandler.login)








module.exports = router